package cn.iocoder.yudao.module.yyzx.controller.admin.outings.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 外出管理 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OutingsRespVO {

    @Schema(description = "外出id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27430")
    @ExcelProperty("外出id")
    private Integer id;

    @Schema(description = "老登id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11109")
    @ExcelProperty("老登id")
    private Integer eldenId;

    @Schema(description = "老登姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("老登姓名")
    private String name;

    @Schema(description = "外出类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "外出类型id", converter = DictConvert.class)
    @DictFormat("outing_type_id") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer outingTypeId;

    @Schema(description = "外出时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("外出时间")
    private LocalDateTime outingTime;

    @Schema(description = "返回时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("返回时间")
    private LocalDateTime returnTime;

    @Schema(description = "外出地点", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("外出地点")
    private String location;

    @Schema(description = "外出原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "不好")
    @ExcelProperty("外出原因")
    private String reason;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}